#ifndef DESKTOPCLASSES_H
#define DESKTOPCLASSES_H
#include "js-engine.h"
#include "desktop-element.h"
JSObject *gadgetClass_init(js_engine *engine, JSObject *parent);

gboolean viewClass_init(js_engine *engine);
JSObject *basicElementClass_init(js_engine *engine);
JSObject *elementsClass_init(js_engine *engine, JSObject *parent);
JSObject *buttonClass_init(js_engine *engine, JSObject *parent);
JSObject *checkboxClass_init(js_engine *engine, JSObject *parent);
JSObject *objectClass_init(js_engine *engine, JSObject *parent);
JSObject *contentareaClass_init(js_engine *engine, JSObject *parent);
JSObject *divClass_init(js_engine *engine, JSObject *parent);
JSObject *editClass_init(js_engine *engine, JSObject *parent);
JSObject *imgClass_init(js_engine *engine, JSObject *parent);
JSObject *labelClass_init(js_engine *engine, JSObject *parent);
JSObject *aClass_init(js_engine *engine, JSObject *parent);
JSObject *progressbarClass_init(js_engine *engine, JSObject *parent);
JSObject *scrollbarClass_init(js_engine *engine, JSObject *parent);
JSObject *radioClass_init(js_engine *engine, JSObject *parent);
JSObject *listboxClass_init(js_engine *engine, JSObject *parent);
JSObject *listitemClass_init(js_engine *engine, JSObject *parent);
JSObject *optionsClass_init(js_engine *engine);
JSObject *menuClass_init(js_engine *engine);

JSBool basicElement_SetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp);

gboolean button_set_events(desktop_element *widget);
gboolean edit_set_events(desktop_element *widget);

#define ONCLICK "onclick"
#define ONRCLICK "onrclick"
#define ONDBLCLICK "ondblclick"
#define ONRDBLCLICK "onrdblclick"
#endif
